<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "{{%customer_info}}".
 *
 * @property integer $id
 * @property integer $customer_info_cate_id
 * @property string $name
 * @property string $mobile
 * @property string $email
 * @property string $mark
 * @property string $organization
 * @property string $wechat
 * @property string $job
 * @property string $profession
 * @property string $city
 * @property string $speciality
 * @property string $create_at
 * @property string $update_at
 */
class CustomerInfo extends \app\components\AppActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'customer_info';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['customer_info_cate_id'], 'integer'],
            [['create_at', 'update_at'], 'safe'],
            [['name'], 'string', 'max' => 30],
            [['mobile', 'city'], 'string', 'max' => 20],
            [['email', 'wechat', 'job'], 'string', 'max' => 50],
            [['mark', 'organization'], 'string', 'max' => 255],
            [['profession'], 'string', 'max' => 100],
            [['speciality'], 'string', 'max' => 200],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'customer_info_cate_id' => 'Customer Info Cate ID',
            'name' => 'Name',
            'mobile' => 'Mobile',
            'email' => 'Email',
            'mark' => 'Mark',
            'organization' => 'Organization',
            'wechat' => 'Wechat',
            'job' => 'Job',
            'profession' => 'Profession',
            'city' => 'City',
            'speciality' => 'Speciality',
            'create_at' => 'Create At',
            'update_at' => 'Update At',
        ];
    }
}
